package com.mindskip.xzs.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mindskip.xzs.domain.Department;
import com.mindskip.xzs.viewmodel.IdNameKV;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    List<Long> getAllChildDepts(@Param("id") Long id);

    List<IdNameKV> queryDeptKVList();

    List<IdNameKV> queryUserDeptKVList(@Param("userId") Integer userId);
}
